package com.ktjy.crm;

import com.ktjy.crm.entity.User;
import com.ktjy.crm.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class UserMapperTester {
    @Autowired
    private UserMapper userMapper;

    @Test
    public void testInsert() throws Exception {
        userMapper.insert(new User(null,"ktjiaoyu", "123456",8L,1));
    }


    @Test
    public void testGet() throws Exception {
        User user = userMapper.get(2L);
        System.out.println("usrName："+user.getUsrName());
    }

}
